package com.pospi.pai.yunpos.util;

import com.pospi.dto.GoodsDto;

/**
 * Created by acer on 2018/8/22.
 */

public class GoodsUtil {
    public GoodsDto getNewGoods(GoodsDto goodsDto) {
        GoodsDto dto = new GoodsDto();
        dto.setSid(goodsDto.getSid());
        dto.setName(goodsDto.getName());
        dto.setPrice(goodsDto.getPrice());
        dto.setCode(goodsDto.getCode());
        dto.setDzc(goodsDto.getDzc());
        dto.setOldPrice(goodsDto.getPrice());
        dto.setNum(1);
        dto.setDiscount(0);
        dto.setProType("");
        dto.setProDiscout(1);
        dto.setProPrice(goodsDto.getPrice());
        dto.setSingnum(9999);
        dto.setHyj(goodsDto.getHyj());
        dto.setHyj1(goodsDto.getHyj1());
        dto.setHyj2(goodsDto.getHyj2());
        dto.setHyj3(goodsDto.getHyj3());
        dto.setMinzkl(goodsDto.getMinzkl());
        dto.setUsezk(goodsDto.getUsezk());
        dto.setUsejf(goodsDto.getUsejf());
        dto.setUnit(goodsDto.getUnit());
        dto.setPlu(goodsDto.getPlu());
        return dto;
    }
}
